<?php
namespace home\model;

use home\model\Model;

class TypeModel extends Model{

    /**
     * 获取指定 id 的类别名称
     */
    public function getTypeName($params){
        $sql = "SELECT blog_type.name FROM blog_type WHERE id = :id";
        return $this->p_query($sql,array('id'=>$params['id']));
    }


}